package com.gulimall.seckill.vo;

import com.gulimall.common.to.SkuInfoTo;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

/**
 * @author kkk
 * @date 2022/8/8
 */
@Data
public class SeckillSkuSessionVo {
    private Long id;
    /**
     * 场次名称
     */
    private String name;
    /**
     * 每日开始时间
     */
    private Date startTime;
    private Date endTime;
    private Integer status;
    private Date createTime;

    private List<SeckillSkuRelationEntity> relationEntities;

    @Data
    public static class SeckillSkuRelationEntity implements Serializable {
        private static final long serialVersionUID = 1L;

        private Long id;
        /**
         * 活动id
         */
        private Long promotionId;
        /**
         * 活动场次id
         */
        private Long promotionSessionId;
        /**
         * 商品id
         */
        private Long skuId;
        /**
         * 秒杀价格
         */
        private BigDecimal seckillPrice;
        /**
         * 秒杀总量
         */
        private BigDecimal seckillCount;
        /**
         * 每人限购数量
         */
        private BigDecimal seckillLimit;
        /**
         * 排序
         */
        private Integer seckillSort;

        private Long startTime;
        private Long endTime;
        private String randomCode;

        private SkuInfoTo skuInfoTo;

    }
}
